//
// Created by denglibin on 2021/4/10 0010.
//

#ifndef SDL_DEMO_SPIRIT_H
#define SDL_DEMO_SPIRIT_H
#include "SDL.h"
#include "window.h"
/**
 * 精灵
 */
typedef struct spirit{
    SDL_Texture * pTexture;
    int x, y;
    int w,h;
    int speed;
}Spirit;

/**
 * 创建精灵
 * @return
 */
Spirit* SP_crateSpirit(const char* imgPath,GameWindow * gameWindow);

void SP_freeSpirit(Spirit* spirit);
#endif //SDL_DEMO_SPIRIT_H
